@echo off
FOR /f "tokens=1-3 delims=: eol=#" %%i in ('findstr /n ".*" %P1Path%JM_config') DO (
if %%i == 2 (
ssh administrator@%%j "tasklist|findstr java* && taskkill /f /im java*"
)
)
pause

rem 杀死 Master 机压测进程  注意，杀死进程在Windows中需要管理员权限
:: ssh administrator@%%i "tasklist|findstr java* && taskkill /f /im java*"